package domini;

import java.util.ArrayList;


/**
 *  <p style="margin-top: 0">
 *        Modela les places del parking.
 *      </p>
 */
// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
// #[regen=yes,id=DCE.E484BADB-072F-9231-2E70-8CA56D0E4F73]
// </editor-fold> 
public class Plasa {

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.74AAB7FF-4810-528A-971B-3E2F44C57118]
    // </editor-fold> 
    private int eoid;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.EA6A95A8-CEA4-882E-4954-02A4D78B77E6]
    // </editor-fold> 
    private ArrayList<Ocupacio> ocupacions = new ArrayList<Ocupacio>();

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.D3889AE3-2524-1974-1611-7013302D37FE]
    // </editor-fold> 
    public Plasa (int eoid) {
        this.eoid = eoid;
    }

    @Override

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.3BCF57BC-EF74-B2EA-3247-C464C3CD8A2F]
    // </editor-fold> 
    public boolean equals (Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        Plasa other = (Plasa) obj;
        if (this.eoid != other.eoid) {
            return false;
        }
        return true;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.B044F050-C7EA-F678-0469-0EEB15C21060]
    // </editor-fold> 
    public int hashCode () {
        int hash = 3;
        hash = 11 * hash + this.eoid;
        return hash;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.1160B15F-67CC-60BF-6243-1B2971C7E6CD]
    // </editor-fold> 
    public int getEoid () {
        return eoid;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.68ED7CA6-C73E-B512-3C96-CE3CE9490DED]
    // </editor-fold> 
    public ArrayList<Ocupacio> getOcupacions () {
        return ocupacions;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.866B3256-D813-093C-D0C3-3BD36947607A]
    // </editor-fold> 
    public void setOcupacions (ArrayList<Ocupacio> ocupacions) {
        this.ocupacions = ocupacions;
    }

    @Override

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.5C27325E-8155-C4E6-8C60-7A186E7F214C]
    // </editor-fold> 
    public String toString () {
        String str = "[Eoid: " + eoid + "]";
        return str;
    }
}
